package in.swapnilwarekar.webessential.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Swapnil implements EntryPoint {
	private final GreetingServiceAsync greetingService = GWT
			.create(GreetingService.class);
	@Override
	public void onModuleLoad() {
		
		
		greetingService.greetServer("test one",
				new AsyncCallback<String>() {
					public void onFailure(Throwable caught) {
						Window.alert("failure");
					}

					public void onSuccess(String result) {
						Window.alert(result);
					}
				});
		
	}
	
}
